/**
 * 注册全局组件
 */
import Skeleton from './Skeleton'
import Slider from './Slider'
import More from './More'

// 1.准备放置组件数组
const cps = [Skeleton, Slider, More]

export default {
  // vue2:参数是Vue构造函数  vue3: app 参数是Vue的实例
  install (app) {
    // console.log('实例', app)
    // app.component('Skeleton', Skeleton)
    cps.forEach(cp => {
      app.component(cp.name, cp)
    })
  }
}
